#include "workCmd.h"
int check_login(char* username,char* password){
    struct spwd *sp = getspnam(username);
    if(!sp)return 0;
    char *encrypted = crypt(password,sp->sp_pwdp);
    return (strcmp(encrypted,sp->sp_pwdp)==0);
}

